<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
      <title>Tagged with image processing - Processing 2.x and 3.x Forum</title>
      <link>https://forum.processing.org/two/discussions/tagged/feed.rss?Tag=image+processing</link>
      <pubDate>Sun, 08 Aug 2021 20:59:28 +0000</pubDate>
         <description>Tagged with image processing - Processing 2.x and 3.x Forum</description>
   <language>en-CA</language>
   <atom:link href="/two/discussions/taggedimage+processing/feed.rss" rel="self" type="application/rss+xml" />
   <item>
      <title>Image processing on Android - poor permormance.</title>
      <link>https://forum.processing.org/two/discussion/25510/image-processing-on-android-poor-permormance</link>
      <pubDate>Mon, 11 Dec 2017 09:05:05 +0000</pubDate>
      <dc:creator>Rakerson</dc:creator>
      <guid isPermaLink="false">25510@/two/discussions</guid>
      <description><![CDATA[<p>Hi there !</p>

<p>I have made simple code which is performing a blue filter. It adds some value to R value and substract something from GB values in two for() loops. It works great on PC but on mobile the performance is really slow. You can see the stuttering on the screen below. Ofc. changing the size of capture image helps but it is not a solution I am looking. How can you improve the performance, what's the best way to do image proccesing on mobile ?</p>

<p>Code:</p>

<pre><code>import ketai.camera.*;

PImage prev;
float threshold = 60;

color currentColor;
color lastColor;

float r1 = 0;
float g1 = 0;
float b1 = 0;

KetaiCamera cam;
void setup() {
  orientation(LANDSCAPE);
  imageMode(CENTER);
  cam = new KetaiCamera(this, 320, 240, 24);
  prev = createImage(320, 240, RGB);
  cam.start();
}

void onCameraPreviewEvent(){
  cam.read();
}

void draw() {
    image(prev, width/2, height/2);
    cam.loadPixels();
    prev.loadPixels();
    loadPixels();

    for (int y = 0; y &lt; cam.height; y++ ) 
  {
    for (int x = 0; x &lt; cam.width; x++ ) 
    {
      int loc = x + y * cam.width; 
      currentColor = cam.pixels[loc]; //current values, taken from cam
      lastColor = prev.pixels[loc];

      float r1 = red(currentColor);
      float g1 = green(currentColor);
      float b1 = blue(currentColor);

      //pixels[loc] = color(r1+30,g1-35,b1-35);
      //float r2 = red(lastColor);
      //float g2 = green(lastColor);
      //float b2 = blue(lastColor);

       prev.pixels[loc] = color(r1-40,g1-40,b1+40);
      //prev.pixels[loc] = lerpColor(lastColor, currentColor, 0.9);

    }
  }
    prev.updatePixels();
    //image(prev, width/2, height/2);
    updatePixels();
  }
</code></pre>

<p><img src="" alt="" /><img src="https://forum.processing.org/two/uploads/imageupload/667/4V1HGE0NCTLR.JPG" alt="filtr" title="filtr" /></p>
]]></description>
   </item>
   <item>
      <title>Duotone Image Processing</title>
      <link>https://forum.processing.org/two/discussion/19517/duotone-image-processing</link>
      <pubDate>Sun, 04 Dec 2016 23:00:49 +0000</pubDate>
      <dc:creator>grumo</dc:creator>
      <guid isPermaLink="false">19517@/two/discussions</guid>
      <description><![CDATA[<p>I'm making this function for converting images to duotone. I'm close but I can't get the gradient (from color1 to color2 right). Also I would like to do this from color1 to transparent/alpha 0, if somebody has any idea. 
Thanks a LOT for any help!</p>

<p>A related script: <a href="http://codepen.io/72lions/pen/jPzLJX" target="_blank" rel="nofollow">http://codepen.io/72lions/pen/jPzLJX</a></p>

<pre><code>// duotone script

color c1, c2;

void setup() {  
  size(800, 800, P2D);
  colorMode(HSB, 255);

  c1 = color(240, 14, 46);
  c2 = color(25, 37, 80);

  PImage pic=loadImage("&lt;a href="<a href="http://jquery-custom-scrollbar.rocketmind.pl/images/lena.png" target="_blank" rel="nofollow">http://jquery-custom-scrollbar.rocketmind.pl/images/lena.png</a>" target="_blank" rel="nofollow"&gt;<a href="http://jquery-custom-scrollbar.rocketmind.pl/images/lena.png&lt;/a&gt" target="_blank" rel="nofollow">http://jquery-custom-scrollbar.rocketmind.pl/images/lena.png&lt;/a&gt</a>;");

  image(duotone(pic, c1, c2), 0, 0);
}


PImage duotone(PImage img, color color1, color color2) {

  img.resize(width, 0);
  img.filter(GRAY);

  color gradient[] = new color[256];

  // Creates a gradient of 255 colors between color1 and color2
  for (int d=0; d &lt; 255; d++) {    
    float ratio= float(d)*0.00392156862745;
    gradient[d]=lerpColor(color1,color2,ratio);
  }

  loadPixels();
  for (int y = 0; y &lt; img.height; y++) {
    for (int x = 0; x &lt; img.width; x++) {
      int loc = x + y*img.width;

      // get the brightness
      float br = brightness(img.pixels[loc]);

      // The luminosity from 0 to 255 --this is necessary?
      float luminosity = max(0, min(254, round((br * 254))));

      // Set the pixel to a gradient with the level of brightness
      img.pixels[loc] = gradient[int(br)];   

      //img.pixels[loc] = gradient[int(luminosity)];  // this won't work
    }
  }

  updatePixels();  
  return(img);
}
</code></pre>
]]></description>
   </item>
   <item>
      <title>Image Processing using Processing</title>
      <link>https://forum.processing.org/two/discussion/10613/image-processing-using-processing</link>
      <pubDate>Sat, 02 May 2015 08:24:42 +0000</pubDate>
      <dc:creator>tunchunairarko</dc:creator>
      <guid isPermaLink="false">10613@/two/discussions</guid>
      <description><![CDATA[<p>I am currently working on a project using Processing. I need to do image processing inside my project, initially I thought of using opencv. But unfortunately I found out that opencv for Processing is not the complete version of the original one. How can I start doing image processing using Processing? I found that since processing is a wrapper of java, java language is accepted. Can I use JavaCV inside processing? If so, how?</p>
]]></description>
   </item>
   <item>
      <title>How to perform Real time Simple Image Processing in RaspberryPi with the following Conditions ?</title>
      <link>https://forum.processing.org/two/discussion/15938/how-to-perform-real-time-simple-image-processing-in-raspberrypi-with-the-following-conditions</link>
      <pubDate>Sat, 09 Apr 2016 16:44:29 +0000</pubDate>
      <dc:creator>blvlohith</dc:creator>
      <guid isPermaLink="false">15938@/two/discussions</guid>
      <description><![CDATA[<p>Description:
 I need to capture as many images as possible continuously (viz. capturing 70 images per second) with higher frame rate and lossless compression but it should not be stored on any disk, as soon as it captures, immediately a specific portion of an image has to be analyzed whether it is bright or dark (say its capturing the Led light) and it should give output as 1 or 0 respectively.</p>

<p>Conditions:
1.  I should be able to do programming only in C / C++, I shouldn’t use any part of Java or Python programming (since timing matters a lot)
2.  I don’t want to use OpenCV, Matlab or any other higher image processing softwares or tools (since requirement of my task is very simple)</p>
]]></description>
   </item>
   <item>
      <title>How to bitmap images with varying stroke widths</title>
      <link>https://forum.processing.org/two/discussion/13164/how-to-bitmap-images-with-varying-stroke-widths</link>
      <pubDate>Thu, 22 Oct 2015 02:53:24 +0000</pubDate>
      <dc:creator>dawi222</dc:creator>
      <guid isPermaLink="false">13164@/two/discussions</guid>
      <description><![CDATA[<p>I am looking for a way to bitmap images using varying geometric/rectangular stroke widths. 
Here is an some example of desired effect:</p>

<p><img src="http://forum.processing.org/two/uploads/imageupload/051/YI4R8AT51LEN.jpg" alt="Example" title="Example" /></p>

<p>Any leads on where to start or what sort of method to deploy would be great!</p>
]]></description>
   </item>
   <item>
      <title>Photoshop levels tools / hue - saturation implementation</title>
      <link>https://forum.processing.org/two/discussion/12753/photoshop-levels-tools-hue-saturation-implementation</link>
      <pubDate>Wed, 30 Sep 2015 16:14:36 +0000</pubDate>
      <dc:creator>MrSilverstone</dc:creator>
      <guid isPermaLink="false">12753@/two/discussions</guid>
      <description><![CDATA[<p>Hi everyone,
I would like to implement the levels and hue saturation tool from photoshop :
<img src="http://forum.processing.org/two/uploads/imageupload/610/TSZSE80PAAKZ.png" alt="Sans titre-3" title="Sans titre-3" /></p>

<p>Unfortunately, I don't know the math behind this tools. Do you have any leads wich could help me? 
My goal is to turn a picture like this : 
<img src="http://forum.processing.org/two/uploads/imageupload/491/34M8TODQYH06.jpg" alt="unnamed" title="unnamed" /></p>

<p>Into this : <img src="http://forum.processing.org/two/uploads/imageupload/558/BMXMJXZUW134.png" alt="toto" title="toto" /></p>

<p>Thanks for you help!</p>
]]></description>
   </item>
   <item>
      <title>CFP: A programming competition involving Image Processing, Machine Learning, Math and Visual Arts</title>
      <link>https://forum.processing.org/two/discussion/11288/cfp-a-programming-competition-involving-image-processing-machine-learning-math-and-visual-arts</link>
      <pubDate>Fri, 12 Jun 2015 15:13:33 +0000</pubDate>
      <dc:creator>gubach</dc:creator>
      <guid isPermaLink="false">11288@/two/discussions</guid>
      <description><![CDATA[<p>Note: This competition has an impact on bitmap and vector graphic programs because with a CRMT-image interpreter 
and corresponding CRMT-command lists all sorts of patterns and tiles can be generated from input images.</p>

<p>Exploring a Design Space for Patterns and Tilings</p>

<p>a periodical programming competition involving Image Processing, Machine Learning, Mathematics and Visual Arts
(student contributions are welcome)</p>

<p>The goal of this periodical programming competition (with some price money) is the exploration of a special design space of patterning &amp; tiling methods and to make selected points of this space (methods that generate interesting and aesthetic results) available for image editing so that contemporary and future artists, illustrators, comic artists, designers, ... can use them under an open source license (CC0 and the like).</p>

<p>The design space relevant for image editing is based on the idea that patterns and tiles can be generated by basic shapes (prototiles) together with a CRMT command list approach that repeatedly clone, rotate and mirror a prototile and translate it over a finite pattern plane. With this unified approach the centuries of mathematical and artistic knowledge about patters, tilings and ornaments will be usable in image editing for bitmap and vector images. By programming CRMT-image interpreter as standalone programs or Plug-ins in bitmap graphic programs (GIMP, Photoshop, ...) and vector graphic programs (Illustrator, Inkscape) very powerful artistic tools can be made that will be using a growing number of CRMT command lists to generate all sorts of patterns from input images.</p>

<p>The goal of the first competition is to reproduce known tilings from the Tiling Database (<a href="http://www.tilingsearch.org/" target="_blank" rel="nofollow">http://www.tilingsearch.org/</a>). This should be done by a learning process because such processes should be the basis for exploration the design space and its extensions in further iterations of the competition. Technically the learning of a CRMT command list for a tiling is viewed as a 2D packing problem with the 2-objective function "gap -&gt; 0 &amp; overlap -&gt; 0".</p>

<p>The competition is originated in the field of Evolutionary Art therefore the learning process should be preferably done with Evolutionary Computation (EC) methods like Genetic Programming but it is not restricted to this if the learning environment with all aspects and parameters are published under an open source license so that others can use it for further exploration.</p>

<p>A detailed description of this programming competition with more technical details, winning conditions, price money, and future directions can be found under: <a href="http://de.evo-art.org/index.php?title=Exploring_a_Design_Space_for_Patterns_and_Tilings_Competition_2015" target="_blank" rel="nofollow">http://de.evo-art.org/index.php?title=Exploring_a_Design_Space_for_Patterns_and_Tilings_Competition_2015</a></p>

<p>Registration starts on 01.05.2015 and ends on 15.11.2016. Contributions can be made until 15.01.2016.</p>

<p>Comments and suggestions to all aspects of the competition project are appreciated and should be addressed to Dr. Günter Bachelier (guba  at  evo-art.org).</p>

<p>Please redistribute this Call for Participation in appropriate mailing lists, blogs, tweets, ... to address and attract as much as possible developer, scientists and students in Evolutionary Computation, Machine Learning, Image Processing and Editing, Mathematics, Media Art, ...</p>
]]></description>
   </item>
   <item>
      <title>GEOTIFF pixel interpretation</title>
      <link>https://forum.processing.org/two/discussion/11110/geotiff-pixel-interpretation</link>
      <pubDate>Tue, 02 Jun 2015 06:11:00 +0000</pubDate>
      <dc:creator>GISNoob</dc:creator>
      <guid isPermaLink="false">11110@/two/discussions</guid>
      <description><![CDATA[<p>I am just starting to learn about reading in GEOTIFF files. I am using the BEAM API. I had a question regarding the GEOTIFF format. I have a land cover GEOTIFF file where I have unsigned 8 bit ints for storing the land cover type.</p>

<p>When I print out the values of the pixels I get values for the land cover types(which are ranging from 10 to 100)  as well numbers ranging from 0 to 255. How do I know what byte refers to the land cover type and what byte refers to the color palette ?  I need a Pixel interpretation of the GEOTIFF file.</p>
]]></description>
   </item>
   <item>
      <title>Screen shot processing and getting co-ordinates</title>
      <link>https://forum.processing.org/two/discussion/10829/screen-shot-processing-and-getting-co-ordinates</link>
      <pubDate>Fri, 15 May 2015 16:13:02 +0000</pubDate>
      <dc:creator>twirap</dc:creator>
      <guid isPermaLink="false">10829@/two/discussions</guid>
      <description><![CDATA[<p>I am taking screen shots every second in Processing to detect circles of different colors which occur at the exact same co-ordinate on my screen. I cannot figure out how to get the co-ordinate of each circle on the screen shot (the circles are always in the same spot on the screen). I am taking screen shots 400 px x 600 px.</p>

<p>If there is no way then my only solution is to write some code where it takes a screen shot and freezes it, and then I do left mouse button presses in pixel of interest and then console prints the co-ordinates as well as the color.</p>
]]></description>
   </item>
   <item>
      <title>Size Issue After STL image import</title>
      <link>https://forum.processing.org/two/discussion/9772/size-issue-after-stl-image-import</link>
      <pubDate>Mon, 09 Mar 2015 13:20:47 +0000</pubDate>
      <dc:creator>fahadkalis</dc:creator>
      <guid isPermaLink="false">9772@/two/discussions</guid>
      <description><![CDATA[<p>I wrote a program in Processing, to import a STL file and then rotate in 3D according to requirement.
But I am facing a problem that the import image is very diminish in size.</p>

<p>Can you please help me to resolve this problem from my coding?</p>

<pre><code>import toxi.geom.*;
import toxi.geom.mesh.*;

import toxi.processing.*;

TriangleMesh mesh;
ToxiclibsSupport gfx;

void setup() {
  size(displayWidth, displayHeight,P3D);
  mesh=(TriangleMesh)new STLReader().loadBinary(sketchPath("check.stl"),STLReader.TRIANGLEMESH);
  gfx=new ToxiclibsSupport(this);
}

void draw() {
  background(51);
  translate(width/2,height/2,0);
  rotateX(mouseY*0.01);
  rotateY(mouseX*0.01);

  gfx.mesh(mesh,false,10);
}
</code></pre>

<p><img src="http://forum.processing.org/two/uploads/imageupload/432/TBJPIERH7U72.jpg" alt="plane1" title="plane1" /></p>
]]></description>
   </item>
   <item>
      <title>Image processing/Comparing</title>
      <link>https://forum.processing.org/two/discussion/9753/image-processing-comparing</link>
      <pubDate>Sun, 08 Mar 2015 13:47:25 +0000</pubDate>
      <dc:creator>Aditya</dc:creator>
      <guid isPermaLink="false">9753@/two/discussions</guid>
      <description><![CDATA[<p>Hello,
I have a project at hand wherein I need to compare an image and video frame. I am new to programming and trying to get a prototype working. 
I have a pre fed image and the camera needs to locate this image. The camera should possibly tell the user to navigate to a particular place where the reference image is shot. All this happens in a controlled environment, and hence the fed reference image and the initial camera position can be close to each other.</p>
]]></description>
   </item>
   </channel>
</rss>